// To parse this JSON data, do
//
//     final loginModel = loginModelFromJson(jsonString);

import 'dart:convert';

LoginModel loginModelFromJson(String str) => LoginModel.fromJson(json.decode(str));

String loginModelToJson(LoginModel data) => json.encode(data.toJson());

class LoginModel {
  LoginModel({
    this.userId,
    this.uniqId,
    this.imei,
    this.packageName,
    this.ip,
    this.brand,
    this.model,
    this.userNo,
    this.userPoint,
    this.amountExchangeRate,
    this.dayExchangeRate,
    this.amount,
    this.day,
    this.userStatus,
    this.gold,
    this.token,
    this.devId,
    this.userAppRole,
    this.serviceTime,
    this.config,
    this.invitationCode,
    this.phone,
  });

  num? userId;
  String? uniqId;
  dynamic imei;
  String? packageName;
  String? ip;
  dynamic brand;
  dynamic model;
  dynamic userNo;
  int? userPoint;
  num? amountExchangeRate;
  num? dayExchangeRate;
  num? amount;
  num? day;
  dynamic userStatus;
  dynamic gold;
  String? token;
  String? devId;
  dynamic userAppRole;
  int? serviceTime;
  dynamic config;
  String? invitationCode;
  String? phone;

  factory LoginModel.fromJson(Map<String, dynamic> json) => LoginModel(
        userId: json["userId"],
        uniqId: json["uniqId"],
        imei: json["imei"],
        packageName: json["packageName"],
        ip: json["ip"],
        brand: json["brand"],
        model: json["model"],
        userNo: json["userNo"],
        userPoint: json["userPoint"],
        amountExchangeRate: json["amount_exchange_rate"],
        dayExchangeRate: json["day_exchange_rate"],
        amount: json["amount"],
        day: json["day"],
        userStatus: json["userStatus"],
        gold: json["gold"],
        token: json["token"],
        devId: json["devId"],
        userAppRole: json["userAppRole"],
        serviceTime: json["serviceTime"],
        config: json["config"],
        invitationCode: json["invitation_code"],
        phone: json['phone'],
      );

  Map<String, dynamic> toJson() => {
        "userId": userId,
        "uniqId": uniqId,
        "imei": imei,
        "packageName": packageName,
        "ip": ip,
        "brand": brand,
        "model": model,
        "userNo": userNo,
        "userPoint": userPoint,
        "amount_exchange_rate": amountExchangeRate,
        "day_exchange_rate": dayExchangeRate,
        "amount": amount,
        "day": day,
        "userStatus": userStatus,
        "gold": gold,
        "token": token,
        "devId": devId,
        "userAppRole": userAppRole,
        "serviceTime": serviceTime,
        "config": config,
        "invitation_code": invitationCode,
      };
}
